import { App } from "vue";
import FormGroupPanel from "./i-biz-form-group-panel.vue";
import { registerFormDetailProvider } from "@ibiz-template/runtime";
import { FormGroupPanelProvider } from "./i-biz-form-group-panel.provider";

export const IBizFormGroupPanel = {
  install(v: App) {
    v.component("IBizFormGroupPanel", FormGroupPanel);
    registerFormDetailProvider(
      "GROUPPANEL",
      () => new FormGroupPanelProvider()
    );
  },
};

export default IBizFormGroupPanel;
